﻿<%@ Page Title="EventHallBookingApproval" MasterPageFile="~/site.master" Language="C#" AutoEventWireup="true" 
    CodeBehind="EventHallBookingApproval.aspx.cs" Inherits="WebFormSingTowerMall.Approval.EventHallBookingApproval" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <div>



            <legend>Event Hall Booking Approval</legend>&nbsp;&nbsp;
            <br />
                <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>



        <asp:GridView ID="EventHallBookingGridView" runat="server" Width="100%" BackColor="White" 
                    BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
                    GridLines="None" AutoGenerateColumns="False" 
                    onselectedindexchanged="EventHallBookingGridView_SelectedIndexChanged">
                    <Columns>

                         <asp:BoundField DataField="BookingID" HeaderText="Booking ID" 
                             SortExpression="BookingID" />
                         <asp:BoundField DataField="HallID" HeaderText="Hall ID" 
                             SortExpression="HallID" />
                         <asp:BoundField DataField="BookingDateTime" HeaderText="Request Date" 
                             SortExpression="BookingDateTime" />
                         <asp:BoundField DataField="UserName" HeaderText="By" 
                             SortExpression="UserName" />
                         <asp:BoundField DataField="EventStartDateTime" HeaderText="Start Date" 
                             SortExpression="EventStartDateTime" />
                         <asp:BoundField DataField="EventEndDateTime" HeaderText="End Date" 
                             SortExpression="EventEndDateTime" />
                         <asp:BoundField DataField="CompanyName" HeaderText="Company Name" 
                             SortExpression="CompanyName" />
                         <asp:BoundField DataField="EventDescription" HeaderText="Event Description" 
                             SortExpression="EventDescription" />
                         <asp:BoundField DataField="Status" HeaderText="Status" 
                             SortExpression="Status" />
                         <asp:TemplateField HeaderText="Detail">
                             <ItemTemplate>
                                 <asp:LinkButton ID="lnkViewDetail" runat="server" 
                                     CommandArgument='<% #Bind("UserName")%>' CommandName="lnkViewDetail_click" 
                                     OnCommand="lnkViewDetail_click" Text="User Detail" 
                                     ToolTip="View Detail for User"></asp:LinkButton>
                             </ItemTemplate>
                         </asp:TemplateField>
<%--                <asp:TemplateField HeaderText="Approved">
                             <ItemTemplate>
                                 <asp:CheckBox ID="cboxTest" runat="server" AutoPostBack="True" CommandName="Select"
                                     oncheckedchanged="cboxTest_CheckedChanged" />
                              </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                        </asp:TemplateField>--%>

                        <asp:CommandField ShowSelectButton="True" HeaderText="Approval" 
                             ButtonType="Button" SelectText="Accept" />

                         <asp:TemplateField HeaderText="Rejection">
                             <ItemTemplate>
                                 <asp:Button ID="Select" runat="server"  Text="Reject"
                                     OnClick="CheckBox1_CheckedChanged" />
                             </ItemTemplate>
                         </asp:TemplateField>

                    </Columns>
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#594B9C" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#33276A" />
        </asp:GridView>
    
                <br />
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                    onclick="btnSubmit_Click" />
    
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                


            <br />
            <asp:Label ID="Label2" runat="server"></asp:Label>



            <br />
            <asp:Label ID="Label3" runat="server"></asp:Label>
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;



     
    </div>
</asp:Content>

